package mysql_jdbc;

import com.mysql.jdbc.Driver;
import java.sql.*;
import java.util.Scanner;

public class Main {
    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
        try {
            Connect c = new Connect("localhost", "mydb", "root", "");
            
            System.out.println("Input word:");
            String word;
            
            Scanner in = new Scanner(System.in);
            word = in.nextLine();
            in.close();

            System.out.println("Type: " + c.GetWordType(word));
        }
        catch (SQLException e) {
            e.printStackTrace();
            System.err.println("Connection Failure");
        }  
    }
}
